class Main:
    def __init__(self):
        self.list_callable = []

    def run(self):
        while True:
            if self.list_callable:
                for callable in self.list_callable:
                    callable['func']()

    def add_callable(self, func_name):
        def _func(func):
            self.list_callable.append({"name": func_name, "func": func})

        return _func

    def remove_callable(self, func_name):
        _list = list(filter(lambda item: item if item['name'] == func_name else None, self.list_callable))
        print(_list)
        # if len(_list) > 0:
        #     self.list_callable.remove(_list[0])


main = Main()
